﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BaseCoder
{
    public interface IDataAccess<T>
    {
        int Insert(T model);

        T Get(string where);

        T Get(int id);

        bool Delete(string where);

        bool Update(T model);

        bool Update(string fields, string where);

        bool ExcecuteSql(string where);

        IList<T> GetList();

    }
}
